package com.smdk.dsminio.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * (DsminioFileInfo)表实体类
 *
 * @author 神秘的凯
 * @since 2020-11-11 17:10:03
 */
@Data
@ApiModel(value = "File对象信息")
public class DsminioFileInfo extends Model<DsminioFileInfo> {

    /**
     * 
     *ObjectId
     *
     */
    @ApiModelProperty(value = "文件ID")
    private Long id;

    /**
     *
     *数据节点ID
     *
     */
    @ApiModelProperty(value = "数据节点ID")
    private String nodeServerId;
    
   /**
    * 
    *文件路径
    *
    */
    @ApiModelProperty(value = "文件路径")
    private String filePath;
    
   /**
    * 
    *ObjectName
    *
    */
    @ApiModelProperty(value = "文件名称")
    private String fileName;
    
   /**
    * 
    *ObjectId
    *
    */
    @ApiModelProperty(value = "ObjectId")
    private Long folderId;
    
   /**
    * 
    *bucketId
    *
    */
    @ApiModelProperty(value = "bucketId")
    private Long bucketId;
    
   /**
    * 
    *Object大小 单位为KB
    *
    */
    @ApiModelProperty(value = "文件大小 单位为KB")
    private Long size;
    
   /**
    * 
    *后缀 Object类型
    *
    */
    @ApiModelProperty(value = "后缀文件类型")
    private String suffix;

    @ApiModelProperty(value = "文件MD5")
    private String md5;
    
   /**
    * 
    *Object状态
    *
    */
    @ApiModelProperty(value = "文件状态")
    private Integer fileStatus;
    
   /**
    * 
    *创建时间
    *
    */
    @ApiModelProperty(value = "创建时间")
    private Date createDateTime;
    
   /**
    * 
    *更新时间
    *
    */
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    }